<template>
    <view class="wrep">
        <!-- #ifdef APP-PLUS -->
        <view class="ver">当前版本号：{{version}}</view>
        <!-- #endif -->
        <view class="about">
            {{conents}}
        </view>
    </view>
</template>

<script>
    let uinfo;
    import request from "../../untils/request.js";
    export default {
        data() {
            return {
                conents: '',
                version: '',
            }
        },
        onLoad() {
            this.aboutweFn();
            
        },
        onShow() {
            // #ifdef APP-PLUS
                this.versionFn();
            // #endif
        },
        methods: {
            versionFn(){
                let _this=this;
                plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) {
                    _this.version = widgetInfo.version;
                })
            },
            aboutweFn() {
                request.postMember('/user/commoninfo/queryCommonInfo', {
                    type: '9'
                }).then(res => {
                    //console.log(res)
                    if (res.code == '200') {
                        this.conents = res.data.infos[0].content;
                    }
                })
            }
        }
    }
</script>

<style>
    .wrep {
        background: #F5F5F5;
        height: 93.3vh;
    }
    .ver{
        color: #000000;
        text-align: center;
    }
    .about {
        padding: 56rpx 0 0 0;
        font-size: 14px;
        font-family: Source Han Sans CN;
        font-weight: 400;
        line-height: 24px;
        color: #333333;
        margin: 0 96rpx 0;
    }
</style>
